<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: csnf
  Date: 2024/12/19
  Time: 09:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="BookServlet">
    <input type="text" name="bookName" placeholder="书籍名称">
    <input type="submit" value="查询">
</form>
<table border="1">
    <tr>
        <th>编号</th>
        <th>书名</th>
        <th>作者</th>
        <th>国家</th>
        <th>出版年份</th>
        <th>操作</th>
    </tr>
    <c:forEach items="${bookList}" var="book">
        <tr>
            <td>${book.book_id}</td>
            <td>${book.book_name}</td>
            <td>${book.authors.author_name}</td>
            <td>${book.authors.author_nation}</td>
            <td>${book.book_year}</td>
            <td>
                <a href="">修改</a>
                <a href="">删除</a>
            </td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
